package com.ftg.learn.day09.pattern.factorypattern;

/**
 * 宠物
 *
 * @author 布衣
 */
public class Pet {

    private double price;

    private String name;

    public Pet(){

    }

    public Pet(double price, String name) {
        this.price = price;
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void shout(){
        System.out.println("宠物说");
    }

}
